<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>空间旋转-rotateZ</title>
    <style>
        .son {
            width: 200px;
            height: 200px;
            background-color: #f96b6b;
            margin: 200px auto;
            transition: all 2s;
        }
        .son:hover {
            /* 沿着z轴旋转，效果与平面旋转沿着中心点旋转一样的 */
            transform: rotateZ(360deg);
        }
    </style>
</head>
<body>
<div class="father">
    <div class="son"></div>
</div>
</body>
</html>
